<?php

class Games_model extends CI_Model
{
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    
    public function load()
    {
        $query=$this->db->query('select * from game');
        return $query->result_array();
    }
}
?>
